﻿namespace HRM.CORE.REPORT
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptRate : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private XRLabel chSex;
        private IContainer components;
        private DetailBand Detail;
        private XRLabel dtBirthday;
        private HRM_CANDIDATE l_Candidate;
        private HRM_CANDIDATE_RATE l_CandidateRate;
        private string m_CandidateCode;
        private XRPictureBox ptEmployeePhoto;
        private XRPictureBox ptPhoto;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtAddress;
        private XRLabel txtBirthPlace;
        private XRLabel txtCandidateCode;
        private XRLabel txtCandidateName;
        private XRTableCell txtCommunicate;
        private XRLabel txtCompany;
        private XRLabel txtDate;
        private XRTableCell txtExperience;
        private XRTableCell txtHealth;
        private XRLabel txtInformation;
        private XRLabel txtIsPass;
        private XRTableCell txtKnowledge;
        private XRTableCell txtLead;
        private XRTableCell txtLook;
        private XRLabel txtMark;
        private XRLabel txtPosition;
        private XRLabel txtProposal;
        private XRLabel txtRate;
        private XRTableCell txtSituation;
        private XRTableCell txtSolve;
        private XRTableCell txtStyle;
        private XRTableCell txtTeam;
        private XRLabel txtUnit;
        private XRTableCell txtVoice;
        private XRLabel xrLabel1;
        private XRLabel xrLabel10;
        private XRLabel xrLabel11;
        private XRLabel xrLabel12;
        private XRLabel xrLabel14;
        private XRLabel xrLabel15;
        private XRLabel xrLabel17;
        private XRLabel xrLabel2;
        private XRLabel xrLabel25;
        private XRLabel xrLabel27;
        private XRLabel xrLabel3;
        private XRLabel xrLabel4;
        private XRLabel xrLabel5;
        private XRLabel xrLabel7;
        private XRLabel xrLabel9;
        private XRTable xrTable1;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell23;
        private XRTableCell xrTableCell27;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell31;
        private XRTableCell xrTableCell32;
        private XRTableCell xrTableCell33;
        private XRTableCell xrTableCell34;
        private XRTableCell xrTableCell35;
        private XRTableCell xrTableCell36;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell43;
        private XRTableCell xrTableCell44;
        private XRTableCell xrTableCell49;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell50;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow10;
        private XRTableRow xrTableRow11;
        private XRTableRow xrTableRow12;
        private XRTableRow xrTableRow13;
        private XRTableRow xrTableRow14;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow5;
        private XRTableRow xrTableRow6;
        private XRTableRow xrTableRow7;
        private XRTableRow xrTableRow8;
        private XRTableRow xrTableRow9;

        public rptRate()
        {
            this.l_Candidate = new HRM_CANDIDATE();
            this.l_CandidateRate = new HRM_CANDIDATE_RATE();
            this.m_CandidateCode = "";
            this.components = null;
            this.InitializeComponent();
        }

        public rptRate(string CandidateCode)
        {
            this.l_Candidate = new HRM_CANDIDATE();
            this.l_CandidateRate = new HRM_CANDIDATE_RATE();
            this.m_CandidateCode = "";
            this.components = null;
            this.InitializeComponent();
            this.m_CandidateCode = CandidateCode;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(rptRate));
            this.Detail = new DetailBand();
            this.txtIsPass = new XRLabel();
            this.xrLabel17 = new XRLabel();
            this.txtMark = new XRLabel();
            this.xrLabel15 = new XRLabel();
            this.txtProposal = new XRLabel();
            this.xrLabel11 = new XRLabel();
            this.txtRate = new XRLabel();
            this.xrLabel7 = new XRLabel();
            this.txtInformation = new XRLabel();
            this.xrLabel5 = new XRLabel();
            this.xrLabel1 = new XRLabel();
            this.xrLabel9 = new XRLabel();
            this.xrLabel27 = new XRLabel();
            this.xrLabel12 = new XRLabel();
            this.xrLabel10 = new XRLabel();
            this.xrLabel25 = new XRLabel();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell31 = new XRTableCell();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableRow9 = new XRTableRow();
            this.xrTableCell43 = new XRTableCell();
            this.xrTableCell44 = new XRTableCell();
            this.txtLook = new XRTableCell();
            this.xrTableRow8 = new XRTableRow();
            this.xrTableCell32 = new XRTableCell();
            this.xrTableCell27 = new XRTableCell();
            this.txtStyle = new XRTableCell();
            this.xrTableRow7 = new XRTableRow();
            this.xrTableCell33 = new XRTableCell();
            this.xrTableCell23 = new XRTableCell();
            this.txtVoice = new XRTableCell();
            this.xrTableRow6 = new XRTableRow();
            this.xrTableCell34 = new XRTableCell();
            this.xrTableCell19 = new XRTableCell();
            this.txtHealth = new XRTableCell();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell35 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.txtKnowledge = new XRTableCell();
            this.xrTableRow2 = new XRTableRow();
            this.xrTableCell36 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.txtExperience = new XRTableCell();
            this.xrTableRow10 = new XRTableRow();
            this.xrTableCell49 = new XRTableCell();
            this.xrTableCell50 = new XRTableCell();
            this.txtCommunicate = new XRTableCell();
            this.xrTableRow11 = new XRTableRow();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.txtSolve = new XRTableCell();
            this.xrTableRow13 = new XRTableRow();
            this.xrTableCell17 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.txtTeam = new XRTableCell();
            this.xrTableRow12 = new XRTableRow();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.txtSituation = new XRTableCell();
            this.xrTableRow14 = new XRTableRow();
            this.xrTableCell21 = new XRTableCell();
            this.xrTableCell22 = new XRTableCell();
            this.txtLead = new XRTableCell();
            this.txtDate = new XRLabel();
            this.txtPosition = new XRLabel();
            this.txtBirthPlace = new XRLabel();
            this.txtCandidateCode = new XRLabel();
            this.txtCandidateName = new XRLabel();
            this.xrLabel3 = new XRLabel();
            this.dtBirthday = new XRLabel();
            this.chSex = new XRLabel();
            this.ptEmployeePhoto = new XRPictureBox();
            this.xrLabel14 = new XRLabel();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.ptPhoto = new XRPictureBox();
            this.xrLabel4 = new XRLabel();
            this.txtUnit = new XRLabel();
            this.txtAddress = new XRLabel();
            this.txtCompany = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.ReportFooter = new ReportFooterBand();
            this.xrTable1.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { 
                this.txtIsPass, this.xrLabel17, this.txtMark, this.xrLabel15, this.txtProposal, this.xrLabel11, this.txtRate, this.xrLabel7, this.txtInformation, this.xrLabel5, this.xrLabel1, this.xrLabel9, this.xrLabel27, this.xrLabel12, this.xrLabel10, this.xrLabel25, 
                this.xrTable1, this.txtDate, this.txtPosition, this.txtBirthPlace, this.txtCandidateCode, this.txtCandidateName, this.xrLabel3, this.dtBirthday, this.chSex, this.ptEmployeePhoto, this.xrLabel14
             });
            this.Detail.HeightF = 507f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.txtIsPass.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtIsPass.LocationFloat = new PointFloat(273.2083f, 479.2917f);
            this.txtIsPass.Name = "txtIsPass";
            this.txtIsPass.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtIsPass.SizeF = new SizeF(94.54168f, 17.70828f);
            this.txtIsPass.StylePriority.UseFont = false;
            this.txtIsPass.Text = "Rớt";
            this.xrLabel17.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel17.LocationFloat = new PointFloat(212.0417f, 479.2917f);
            this.xrLabel17.Name = "xrLabel17";
            this.xrLabel17.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel17.SizeF = new SizeF(60.16667f, 17.70828f);
            this.xrLabel17.StylePriority.UseFont = false;
            this.xrLabel17.Text = "Kết quả:";
            this.txtMark.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtMark.LocationFloat = new PointFloat(97.58339f, 479.2917f);
            this.txtMark.Name = "txtMark";
            this.txtMark.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtMark.SizeF = new SizeF(94.54168f, 17.70828f);
            this.txtMark.StylePriority.UseFont = false;
            this.txtMark.Text = "0";
            this.xrLabel15.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrLabel15.LocationFloat = new PointFloat(1.000007f, 479.2917f);
            this.xrLabel15.Name = "xrLabel15";
            this.xrLabel15.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel15.SizeF = new SizeF(94.54168f, 17.70828f);
            this.xrLabel15.StylePriority.UseFont = false;
            this.xrLabel15.Text = "Điểm đ\x00e1nh gi\x00e1:";
            this.txtProposal.Font = new Font("Times New Roman", 9.75f);
            this.txtProposal.LocationFloat = new PointFloat(1f, 451.2917f);
            this.txtProposal.Name = "txtProposal";
            this.txtProposal.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtProposal.SizeF = new SizeF(695.6667f, 17.70837f);
            this.txtProposal.StylePriority.UseFont = false;
            this.txtProposal.Text = manager.GetString("txtProposal.Text");
            this.xrLabel11.LocationFloat = new PointFloat(1f, 432.7917f);
            this.xrLabel11.Name = "xrLabel11";
            this.xrLabel11.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel11.SizeF = new SizeF(135.7084f, 17.70831f);
            this.xrLabel11.Text = "Đề nghị:";
            this.txtRate.Font = new Font("Times New Roman", 9.75f);
            this.txtRate.LocationFloat = new PointFloat(1.000007f, 412.2916f);
            this.txtRate.Name = "txtRate";
            this.txtRate.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtRate.SizeF = new SizeF(695.6667f, 17.70837f);
            this.txtRate.StylePriority.UseFont = false;
            this.txtRate.Text = manager.GetString("txtRate.Text");
            this.xrLabel7.LocationFloat = new PointFloat(1.000007f, 393.2916f);
            this.xrLabel7.Name = "xrLabel7";
            this.xrLabel7.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel7.SizeF = new SizeF(135.7084f, 17.70831f);
            this.xrLabel7.Text = "Nhận x\x00e9t:";
            this.txtInformation.Font = new Font("Times New Roman", 9.75f);
            this.txtInformation.LocationFloat = new PointFloat(0f, 373.9583f);
            this.txtInformation.Name = "txtInformation";
            this.txtInformation.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtInformation.SizeF = new SizeF(695.6667f, 17.70837f);
            this.txtInformation.StylePriority.UseFont = false;
            this.txtInformation.Text = manager.GetString("txtInformation.Text");
            this.xrLabel5.LocationFloat = new PointFloat(1.000007f, 354.25f);
            this.xrLabel5.Name = "xrLabel5";
            this.xrLabel5.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel5.SizeF = new SizeF(135.7084f, 17.70831f);
            this.xrLabel5.Text = "Th\x00f4ng tin bổ sung:";
            this.xrLabel1.LocationFloat = new PointFloat(87.5f, 10.00001f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(68.83335f, 17.70833f);
            this.xrLabel1.Text = "M\x00e3 UV:";
            this.xrLabel9.LocationFloat = new PointFloat(487.0417f, 10.00001f);
            this.xrLabel9.Name = "xrLabel9";
            this.xrLabel9.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel9.SizeF = new SizeF(68.83335f, 17.70833f);
            this.xrLabel9.Text = "Giới t\x00ednh:";
            this.xrLabel27.LocationFloat = new PointFloat(390.486f, 58.5f);
            this.xrLabel27.Name = "xrLabel27";
            this.xrLabel27.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel27.SizeF = new SizeF(103.9308f, 17.7083f);
            this.xrLabel27.Text = "Ng\x00e0y phỏng vấn:";
            this.xrLabel12.LocationFloat = new PointFloat(368f, 33.5f);
            this.xrLabel12.Name = "xrLabel12";
            this.xrLabel12.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel12.SizeF = new SizeF(57.37503f, 17.70833f);
            this.xrLabel12.Text = "Nơi sinh:";
            this.xrLabel10.LocationFloat = new PointFloat(87.5f, 33.5f);
            this.xrLabel10.Name = "xrLabel10";
            this.xrLabel10.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel10.SizeF = new SizeF(151.9584f, 17.70834f);
            this.xrLabel10.Text = "Ng\x00e0y, th\x00e1ng, năm sinh:";
            this.xrLabel25.LocationFloat = new PointFloat(87.5f, 58.5f);
            this.xrLabel25.Name = "xrLabel25";
            this.xrLabel25.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel25.SizeF = new SizeF(102.3751f, 17.70832f);
            this.xrLabel25.Text = "Vị tr\x00ed tuyển dụng:";
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.LocationFloat = new PointFloat(0f, 92.5f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1, this.xrTableRow9, this.xrTableRow8, this.xrTableRow7, this.xrTableRow6, this.xrTableRow5, this.xrTableRow2, this.xrTableRow10, this.xrTableRow11, this.xrTableRow13, this.xrTableRow12, this.xrTableRow14 });
            this.xrTable1.SizeF = new SizeF(695.6667f, 250f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.xrTableCell31, this.xrTableCell1, this.xrTableCell2 });
            this.xrTableRow1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.StylePriority.UseFont = false;
            this.xrTableRow1.StylePriority.UseTextAlignment = false;
            this.xrTableRow1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell31.Name = "xrTableCell31";
            this.xrTableCell31.Text = "Stt";
            this.xrTableCell31.Weight = 0.23426119326176054;
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.Text = "Ti\x00eau ch\x00ed";
            this.xrTableCell1.Weight = 1.0723418137946557;
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Text = "Đ\x00e1nh gi\x00e1";
            this.xrTableCell2.Weight = 1.6933969929435837;
            this.xrTableRow9.Cells.AddRange(new XRTableCell[] { this.xrTableCell43, this.xrTableCell44, this.txtLook });
            this.xrTableRow9.Name = "xrTableRow9";
            this.xrTableRow9.Weight = 1.0;
            this.xrTableCell43.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell43.Name = "xrTableCell43";
            this.xrTableCell43.StylePriority.UseFont = false;
            this.xrTableCell43.StylePriority.UseTextAlignment = false;
            this.xrTableCell43.Text = "1";
            this.xrTableCell43.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell43.Weight = 0.23426117792029763;
            this.xrTableCell44.Name = "xrTableCell44";
            this.xrTableCell44.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell44.StylePriority.UsePadding = false;
            this.xrTableCell44.StylePriority.UseTextAlignment = false;
            this.xrTableCell44.Text = "Ngoại h\x00ecnh (nh\x00ecn từ b\x00ean ngo\x00e0i)";
            this.xrTableCell44.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell44.Weight = 1.0723418642553479;
            this.txtLook.Name = "txtLook";
            this.txtLook.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtLook.StylePriority.UsePadding = false;
            this.txtLook.StylePriority.UseTextAlignment = false;
            this.txtLook.Text = "txtLook";
            this.txtLook.TextAlignment = TextAlignment.MiddleLeft;
            this.txtLook.Weight = 1.6933969578243544;
            this.xrTableRow8.Cells.AddRange(new XRTableCell[] { this.xrTableCell32, this.xrTableCell27, this.txtStyle });
            this.xrTableRow8.Name = "xrTableRow8";
            this.xrTableRow8.Weight = 1.0;
            this.xrTableCell32.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell32.Name = "xrTableCell32";
            this.xrTableCell32.StylePriority.UseFont = false;
            this.xrTableCell32.StylePriority.UseTextAlignment = false;
            this.xrTableCell32.Text = "2";
            this.xrTableCell32.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell32.Weight = 0.23426117792029763;
            this.xrTableCell27.Name = "xrTableCell27";
            this.xrTableCell27.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell27.StylePriority.UsePadding = false;
            this.xrTableCell27.StylePriority.UseTextAlignment = false;
            this.xrTableCell27.Text = "Phong c\x00e1ch, th\x00e1i độ";
            this.xrTableCell27.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell27.Weight = 1.0723418642553479;
            this.txtStyle.Name = "txtStyle";
            this.txtStyle.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtStyle.StylePriority.UsePadding = false;
            this.txtStyle.StylePriority.UseTextAlignment = false;
            this.txtStyle.Text = "txtStyle";
            this.txtStyle.TextAlignment = TextAlignment.MiddleLeft;
            this.txtStyle.Weight = 1.6933969578243544;
            this.xrTableRow7.Cells.AddRange(new XRTableCell[] { this.xrTableCell33, this.xrTableCell23, this.txtVoice });
            this.xrTableRow7.Name = "xrTableRow7";
            this.xrTableRow7.Weight = 1.0;
            this.xrTableCell33.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell33.Name = "xrTableCell33";
            this.xrTableCell33.StylePriority.UseFont = false;
            this.xrTableCell33.StylePriority.UseTextAlignment = false;
            this.xrTableCell33.Text = "3";
            this.xrTableCell33.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell33.Weight = 0.23426114723737179;
            this.xrTableCell23.Name = "xrTableCell23";
            this.xrTableCell23.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell23.StylePriority.UsePadding = false;
            this.xrTableCell23.StylePriority.UseTextAlignment = false;
            this.xrTableCell23.Text = "Giọng n\x00f3i (trầm, bổng, kh\x00e0n,...)";
            this.xrTableCell23.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell23.Weight = 1.0723420002959612;
            this.txtVoice.Name = "txtVoice";
            this.txtVoice.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtVoice.StylePriority.UsePadding = false;
            this.txtVoice.StylePriority.UseTextAlignment = false;
            this.txtVoice.Text = "txtVoice";
            this.txtVoice.TextAlignment = TextAlignment.MiddleLeft;
            this.txtVoice.Weight = 1.6933968524666669;
            this.xrTableRow6.Cells.AddRange(new XRTableCell[] { this.xrTableCell34, this.xrTableCell19, this.txtHealth });
            this.xrTableRow6.Name = "xrTableRow6";
            this.xrTableRow6.Weight = 1.0;
            this.xrTableCell34.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell34.Name = "xrTableCell34";
            this.xrTableCell34.StylePriority.UseFont = false;
            this.xrTableCell34.StylePriority.UseTextAlignment = false;
            this.xrTableCell34.Text = "4";
            this.xrTableCell34.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell34.Weight = 0.23426116257883473;
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell19.StylePriority.UsePadding = false;
            this.xrTableCell19.StylePriority.UseTextAlignment = false;
            this.xrTableCell19.Text = "T\x00ecnh trạng sức khỏe hiện tại";
            this.xrTableCell19.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell19.Weight = 1.0723418707242041;
            this.txtHealth.Name = "txtHealth";
            this.txtHealth.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtHealth.StylePriority.UsePadding = false;
            this.txtHealth.StylePriority.UseTextAlignment = false;
            this.txtHealth.Text = "txtHealth";
            this.txtHealth.TextAlignment = TextAlignment.MiddleLeft;
            this.txtHealth.Weight = 1.6933969666969615;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell35, this.xrTableCell15, this.txtKnowledge });
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell35.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell35.Name = "xrTableCell35";
            this.xrTableCell35.StylePriority.UseFont = false;
            this.xrTableCell35.StylePriority.UseTextAlignment = false;
            this.xrTableCell35.Text = "5";
            this.xrTableCell35.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell35.Weight = 0.23426117792029763;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell15.StylePriority.UsePadding = false;
            this.xrTableCell15.StylePriority.UseTextAlignment = false;
            this.xrTableCell15.Text = "Hiểu biết về chuy\x00ean m\x00f4n, nghiệp vụ";
            this.xrTableCell15.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell15.Weight = 1.0723419958596578;
            this.txtKnowledge.Name = "txtKnowledge";
            this.txtKnowledge.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtKnowledge.StylePriority.UsePadding = false;
            this.txtKnowledge.StylePriority.UseTextAlignment = false;
            this.txtKnowledge.Text = "txtKnowledge";
            this.txtKnowledge.TextAlignment = TextAlignment.MiddleLeft;
            this.txtKnowledge.Weight = 1.6933968262200445;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.xrTableCell36, this.xrTableCell5, this.txtExperience });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.xrTableCell36.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell36.Name = "xrTableCell36";
            this.xrTableCell36.StylePriority.UseFont = false;
            this.xrTableCell36.StylePriority.UseTextAlignment = false;
            this.xrTableCell36.Text = "6";
            this.xrTableCell36.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell36.Weight = 0.23426117792029763;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell5.StylePriority.UsePadding = false;
            this.xrTableCell5.StylePriority.UseTextAlignment = false;
            this.xrTableCell5.Text = "Kinh nghiệm l\x00e0m việc";
            this.xrTableCell5.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell5.Weight = 1.0723418731279546;
            this.txtExperience.Name = "txtExperience";
            this.txtExperience.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtExperience.StylePriority.UsePadding = false;
            this.txtExperience.StylePriority.UseTextAlignment = false;
            this.txtExperience.Text = "txtExperience";
            this.txtExperience.TextAlignment = TextAlignment.MiddleLeft;
            this.txtExperience.Weight = 1.693396948951748;
            this.xrTableRow10.Cells.AddRange(new XRTableCell[] { this.xrTableCell49, this.xrTableCell50, this.txtCommunicate });
            this.xrTableRow10.Name = "xrTableRow10";
            this.xrTableRow10.Weight = 1.0;
            this.xrTableCell49.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell49.Name = "xrTableCell49";
            this.xrTableCell49.StylePriority.UseFont = false;
            this.xrTableCell49.StylePriority.UseTextAlignment = false;
            this.xrTableCell49.Text = "7";
            this.xrTableCell49.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell49.Weight = 0.23426117792029763;
            this.xrTableCell50.Name = "xrTableCell50";
            this.xrTableCell50.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell50.StylePriority.UsePadding = false;
            this.xrTableCell50.StylePriority.UseTextAlignment = false;
            this.xrTableCell50.Text = "Khả năng tr\x00ecnh b\x00e0y, giao tiếp";
            this.xrTableCell50.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell50.Weight = 1.0723418731279546;
            this.txtCommunicate.Name = "txtCommunicate";
            this.txtCommunicate.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtCommunicate.StylePriority.UsePadding = false;
            this.txtCommunicate.StylePriority.UseTextAlignment = false;
            this.txtCommunicate.Text = "txtCommunicate";
            this.txtCommunicate.TextAlignment = TextAlignment.MiddleLeft;
            this.txtCommunicate.Weight = 1.693396948951748;
            this.xrTableRow11.Cells.AddRange(new XRTableCell[] { this.xrTableCell3, this.xrTableCell4, this.txtSolve });
            this.xrTableRow11.Name = "xrTableRow11";
            this.xrTableRow11.Weight = 1.0;
            this.xrTableCell3.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.StylePriority.UseFont = false;
            this.xrTableCell3.StylePriority.UseTextAlignment = false;
            this.xrTableCell3.Text = "8";
            this.xrTableCell3.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell3.Weight = 0.23426117792029763;
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell4.StylePriority.UsePadding = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Khả năng giải quyết t\x00ecnh huống";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell4.Weight = 1.0723418731279546;
            this.txtSolve.Name = "txtSolve";
            this.txtSolve.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtSolve.StylePriority.UsePadding = false;
            this.txtSolve.StylePriority.UseTextAlignment = false;
            this.txtSolve.Text = "txtSolve";
            this.txtSolve.TextAlignment = TextAlignment.MiddleLeft;
            this.txtSolve.Weight = 1.693396948951748;
            this.xrTableRow13.Cells.AddRange(new XRTableCell[] { this.xrTableCell17, this.xrTableCell18, this.txtTeam });
            this.xrTableRow13.Name = "xrTableRow13";
            this.xrTableRow13.Weight = 1.0;
            this.xrTableCell17.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.StylePriority.UseFont = false;
            this.xrTableCell17.StylePriority.UseTextAlignment = false;
            this.xrTableCell17.Text = "9";
            this.xrTableCell17.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell17.Weight = 0.23426117792029763;
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell18.StylePriority.UsePadding = false;
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "Khả năng l\x00e0m việc tập thể";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell18.Weight = 1.0723418731279546;
            this.txtTeam.Name = "txtTeam";
            this.txtTeam.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtTeam.StylePriority.UsePadding = false;
            this.txtTeam.StylePriority.UseTextAlignment = false;
            this.txtTeam.Text = "txtTeam";
            this.txtTeam.TextAlignment = TextAlignment.MiddleLeft;
            this.txtTeam.Weight = 1.693396948951748;
            this.xrTableRow12.Cells.AddRange(new XRTableCell[] { this.xrTableCell13, this.xrTableCell14, this.txtSituation });
            this.xrTableRow12.Name = "xrTableRow12";
            this.xrTableRow12.Weight = 1.0;
            this.xrTableCell13.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.StylePriority.UseFont = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.Text = "10";
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell13.Weight = 0.23426117792029763;
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell14.StylePriority.UsePadding = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "Ho\x00e0n cảnh (c\x00f3 ph\x00f9 hợp với c\x00f4ng việc)";
            this.xrTableCell14.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell14.Weight = 1.0723418731279546;
            this.txtSituation.Name = "txtSituation";
            this.txtSituation.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtSituation.StylePriority.UsePadding = false;
            this.txtSituation.StylePriority.UseTextAlignment = false;
            this.txtSituation.Text = "txtSituation";
            this.txtSituation.TextAlignment = TextAlignment.MiddleLeft;
            this.txtSituation.Weight = 1.693396948951748;
            this.xrTableRow14.Cells.AddRange(new XRTableCell[] { this.xrTableCell21, this.xrTableCell22, this.txtLead });
            this.xrTableRow14.Name = "xrTableRow14";
            this.xrTableRow14.Weight = 1.0;
            this.xrTableCell21.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.StylePriority.UseFont = false;
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.Text = "11";
            this.xrTableCell21.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell21.Weight = 0.23426117792029763;
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell22.StylePriority.UsePadding = false;
            this.xrTableCell22.StylePriority.UseTextAlignment = false;
            this.xrTableCell22.Text = "Kinh nghiệm về l\x00e3nh đạo v\x00e0 quản l\x00fd";
            this.xrTableCell22.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell22.Weight = 1.0723420047322647;
            this.txtLead.Name = "txtLead";
            this.txtLead.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtLead.StylePriority.UsePadding = false;
            this.txtLead.StylePriority.UseTextAlignment = false;
            this.txtLead.Text = "txtLead";
            this.txtLead.TextAlignment = TextAlignment.MiddleLeft;
            this.txtLead.Weight = 1.6933968173474379;
            this.txtDate.Font = new Font("Times New Roman", 9.75f);
            this.txtDate.LocationFloat = new PointFloat(494.4167f, 58.5f);
            this.txtDate.Name = "txtDate";
            this.txtDate.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtDate.SizeF = new SizeF(202.5832f, 17.70833f);
            this.txtDate.StylePriority.UseFont = false;
            this.txtPosition.Font = new Font("Times New Roman", 9.75f);
            this.txtPosition.LocationFloat = new PointFloat(190.8751f, 58.5f);
            this.txtPosition.Name = "txtPosition";
            this.txtPosition.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtPosition.SizeF = new SizeF(198.6109f, 17.70836f);
            this.txtPosition.StylePriority.UseFont = false;
            this.txtBirthPlace.LocationFloat = new PointFloat(426.3751f, 33.5f);
            this.txtBirthPlace.Name = "txtBirthPlace";
            this.txtBirthPlace.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtBirthPlace.SizeF = new SizeF(270.6249f, 17.70833f);
            this.txtCandidateCode.BorderColor = Color.Black;
            this.txtCandidateCode.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCandidateCode.LocationFloat = new PointFloat(158.5f, 10.00001f);
            this.txtCandidateCode.Name = "txtCandidateCode";
            this.txtCandidateCode.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCandidateCode.SizeF = new SizeF(80.91669f, 17.70834f);
            this.txtCandidateCode.StylePriority.UseBorderColor = false;
            this.txtCandidateCode.StylePriority.UseFont = false;
            this.txtCandidateCode.StylePriority.UseTextAlignment = false;
            this.txtCandidateCode.TextAlignment = TextAlignment.TopCenter;
            this.txtCandidateName.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCandidateName.LocationFloat = new PointFloat(312.0417f, 10.00001f);
            this.txtCandidateName.Name = "txtCandidateName";
            this.txtCandidateName.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCandidateName.SizeF = new SizeF(170.9167f, 17.70833f);
            this.txtCandidateName.StylePriority.UseFont = false;
            this.xrLabel3.LocationFloat = new PointFloat(241.0417f, 10.00001f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(68.83335f, 17.70833f);
            this.xrLabel3.Text = "Họ v\x00e0 t\x00ean:";
            this.dtBirthday.LocationFloat = new PointFloat(240f, 33.5f);
            this.dtBirthday.Name = "dtBirthday";
            this.dtBirthday.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.dtBirthday.SizeF = new SizeF(126.4583f, 17.70834f);
            this.chSex.LocationFloat = new PointFloat(556.5416f, 10.00001f);
            this.chSex.Name = "chSex";
            this.chSex.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.chSex.SizeF = new SizeF(100f, 17.70833f);
            this.ptEmployeePhoto.BorderColor = Color.Gainsboro;
            this.ptEmployeePhoto.Borders = BorderSide.All;
            this.ptEmployeePhoto.LocationFloat = new PointFloat(0.9999981f, 9.999987f);
            this.ptEmployeePhoto.Name = "ptEmployeePhoto";
            this.ptEmployeePhoto.SizeF = new SizeF(80.91666f, 69.20831f);
            this.ptEmployeePhoto.Sizing = ImageSizeMode.ZoomImage;
            this.ptEmployeePhoto.StylePriority.UseBorderColor = false;
            this.ptEmployeePhoto.StylePriority.UseBorders = false;
            this.xrLabel14.ForeColor = Color.Silver;
            this.xrLabel14.LocationFloat = new PointFloat(1f, 38.5f);
            this.xrLabel14.Name = "xrLabel14";
            this.xrLabel14.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel14.SizeF = new SizeF(80.91666f, 17.70833f);
            this.xrLabel14.StylePriority.UseForeColor = false;
            this.xrLabel14.StylePriority.UseTextAlignment = false;
            this.xrLabel14.Text = "Ảnh";
            this.xrLabel14.TextAlignment = TextAlignment.MiddleCenter;
            this.TopMargin.HeightF = 30f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 56f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.ptPhoto, this.xrLabel4, this.txtUnit, this.txtAddress, this.txtCompany, this.xrLabel2 });
            this.ReportHeader.HeightF = 117f;
            this.ReportHeader.Name = "ReportHeader";
            this.ptPhoto.LocationFloat = new PointFloat(7.000032f, 4f);
            this.ptPhoto.Name = "ptPhoto";
            this.ptPhoto.SizeF = new SizeF(88.54166f, 58.33333f);
            this.ptPhoto.Sizing = ImageSizeMode.ZoomImage;
            this.xrLabel4.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.xrLabel4.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel4.SizeF = new SizeF(696.9999f, 30.25001f);
            this.xrLabel4.StylePriority.UseFont = false;
            this.xrLabel4.StylePriority.UseTextAlignment = false;
            this.xrLabel4.Text = "PHIẾU Đ\x00c1NH GI\x00c1 PHỎNG VẤN";
            this.xrLabel4.TextAlignment = TextAlignment.MiddleCenter;
            this.txtUnit.LocationFloat = new PointFloat(3.178914E-05f, 99.29166f);
            this.txtUnit.Name = "txtUnit";
            this.txtUnit.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtUnit.SizeF = new SizeF(696.9999f, 17.70834f);
            this.txtUnit.StylePriority.UseTextAlignment = false;
            this.txtUnit.TextAlignment = TextAlignment.MiddleRight;
            this.txtAddress.LocationFloat = new PointFloat(151.375f, 31.70837f);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtAddress.SizeF = new SizeF(413.3749f, 17.70833f);
            this.txtAddress.Text = "txtAddress";
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(102.5834f, 10.00001f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.xrLabel2.LocationFloat = new PointFloat(102.5834f, 31.70827f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(48.7916f, 17.70833f);
            this.xrLabel2.Text = "Địa chỉ:";
            this.ReportFooter.HeightF = 12f;
            this.ReportFooter.Name = "ReportFooter";
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.ReportFooter });
            base.Margins = new Margins(0x47, 0x3b, 30, 0x38);
            base.PageHeight = 0x491;
            base.PageWidth = 0x33b;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptRate_BeforePrint);
            this.xrTable1.EndInit();
            this.EndInit();
        }

        private void LoadAllData()
        {
            this.l_Candidate.Get(this.m_CandidateCode);
            this.l_CandidateRate.Get(this.m_CandidateCode);
            this.txtCandidateCode.Text = this.l_Candidate.CandidateCode;
            this.txtCandidateName.Text = this.l_Candidate.FirstName + " " + this.l_Candidate.LastName;
            if (this.l_Candidate.Sex)
            {
                this.chSex.Text = "Nam";
            }
            else
            {
                this.chSex.Text = "Nữ";
            }
            this.dtBirthday.Text = this.l_Candidate.Birthday.ToShortDateString();
            this.txtBirthPlace.Text = this.l_Candidate.BirthPlace;
            this.txtPosition.Text = this.l_Candidate.Position1;
            this.txtDate.Text = this.l_CandidateRate.Date.ToShortDateString();
            this.txtLook.Text = this.l_CandidateRate.Look;
            this.txtStyle.Text = this.l_CandidateRate.Style;
            this.txtVoice.Text = this.l_CandidateRate.Voice;
            this.txtHealth.Text = this.l_CandidateRate.Health;
            this.txtKnowledge.Text = this.l_CandidateRate.Knowledge;
            this.txtExperience.Text = this.l_CandidateRate.Experience;
            this.txtCommunicate.Text = this.l_CandidateRate.Communicate;
            this.txtSolve.Text = this.l_CandidateRate.Solve;
            this.txtTeam.Text = this.l_CandidateRate.Team;
            this.txtSituation.Text = this.l_CandidateRate.Situation;
            this.txtLead.Text = this.l_CandidateRate.Lead;
            if (this.l_CandidateRate.Information != "")
            {
                this.txtInformation.Text = this.l_CandidateRate.Information;
            }
            if (this.l_CandidateRate.Rate != "")
            {
                this.txtRate.Text = this.l_CandidateRate.Rate;
            }
            if (this.l_CandidateRate.Proposal != "")
            {
                this.txtProposal.Text = this.l_CandidateRate.Proposal;
            }
            this.txtMark.Text = this.l_CandidateRate.Mark.ToString();
            if (this.l_CandidateRate.IsPass)
            {
                this.txtIsPass.Text = "Đậu";
            }
            else
            {
                this.txtIsPass.Text = "Rớt";
            }
        }

        private void rptRate_BeforePrint(object sender, PrintEventArgs e)
        {
            this.LoadAllData();
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";//MyInfo.Company.ToUpper();
                this.txtAddress.Text = "";//MyInfo.Address;
                this.ptPhoto.Image = null;//MyInfo.Photo;
            }
            CreateFooterReport.CreateFooter("IsOther", this.ReportFooter, this);
        }
    }
}

